package com.mingtu.guards.activity;

import android.view.View;
import android.widget.ImageView;

import com.mingtu.common.utils.ActivityUtil;
import com.mingtu.common.utils.IntentUtils;
import com.mingtu.liteav2.tuiroom.ui.CreateRoomActivity;
import com.mingtu.liteav2.tuiroom.ui.JoinRoomActivity;
import com.mingtu.guards.R;
import com.mingtu.guards.base.MyBaseActivity;

import butterknife.BindView;
import butterknife.OnClick;

public class MeetingActivity extends MyBaseActivity {

    @BindView(R.id.iv_join_meeting)
    ImageView ivJoinMeeting;
    @BindView(R.id.iv_creation_meeting)
    ImageView ivCreationMeeting;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_meeting;
    }

    @Override
    protected void initView() {
        setModuleTitle("视频会议");
    }

    @Override
    protected void initData() {
//        boolean isLeader = SPStaticUtils.getBoolean(SPTools.isLeader);
//        if(isLeader){
//            ivCreationMeeting.setVisibility(View.VISIBLE);
//        }else{
//            ivCreationMeeting.setVisibility(View.GONE);
//        }
    }

    @Override
    protected void getData() {

    }

    @OnClick({R.id.iv_join_meeting, R.id.iv_creation_meeting})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.iv_join_meeting:
                IntentUtils.getInstance().readyGo(ActivityUtil.getTopActivity(), JoinRoomActivity.class);
                break;
            case R.id.iv_creation_meeting:
                IntentUtils.getInstance().readyGo(ActivityUtil.getTopActivity(), CreateRoomActivity.class);
                break;
        }
    }
}